import qbs

Project {
    DynamicLibrary{
        Depends { name: "Qt"; submodules: [ "core"]}
        Depends { name: "cpp"}
        Depends { name: "utils"}
        Group {
                name: "The App itself"
                fileTagsFilter: product.type
                qbs.install: true
                qbs.installDir: "bin/plugins"
            }

        targetName : {
            if(qbs.buildVariant == "debug")
                return "transform_change_freqd"
            else
                return "transform_change_freq"
        }

        files:["*.hpp","*.cpp","*.json"]

        cpp.includePaths : {
            var inc = base.concat(["../utils/include","../../dsp_lab/src"])
            return inc
        }
        cpp.cxxFlags:{
            var flags = base
            if(cpp.compilerName.contains("g++"))
                flags = flags.concat(["-std=gnu++11"])
            return flags
        }
    }
}
